package com.zk.demo.bean;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Fund {

    private Long id;

    //产品名称
    private String productName;


    //本金
    private BigDecimal  principal;

//    @JsonSerialize(using = ByteJsonSerializer.class)
    //当日盈亏率
    private BigDecimal  plrate;

    //当日盈亏金额
    private BigDecimal  loseMoney;

    private String plrateStr;

    //期望盈利百分比或金额
    private BigDecimal  expectMoney;


    //补仓金额
    private BigDecimal repairMoney;

    //第二天卖出手续费
    private BigDecimal tomorrMoney;


    //创建人
    private String createor;

    //创建人ID
    private Integer createorId;




    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //添加日期
    private Date createTime;




}
